<?php
/*
Template Name: Homepage Nivoslider
*/
?>
              
              <?php get_header();?>
  							<div id="main">								
									<div id="maintext">
                  <?php
                    $welcome_subtitle = get_option('centita_welcome_subtitle');
                    $welcome_message = stripslashes(get_option('centita_welcome_message'));
                    $site_desc  = stripslashes(get_option('centita_site_desc'));
                  ?>
                  <h2><?php if ($welcome_message !="") echo stripslashes($welcome_message);?></h2>
            			<h1><?php if ($welcome_subtitle !="") echo stripslashes($welcome_subtitle);?></h1>
            			<p><?php if ($site_desc !="") echo stripslashes($site_desc);?></p>            			
									 <?php
                      $homebox_title1 = get_option('centita_homebox_title1');
                      $homebox_desc1  = get_option('centita_homebox_desc1');
                      $homebox_desturl1 = get_option('centita_homebox_desturl1');
                      $homebox_image1 = get_option('centita_homebox_image1');
                      $homebox_title2 = get_option('centita_homebox_title2');
                      $homebox_desc2  = get_option('centita_homebox_desc2');
                      $homebox_desturl2 = get_option('centita_homebox_desturl2');
                      $homebox_image2 = get_option('centita_homebox_image2');  
                      ?>
                    <div class="h-line"><hr /></div>
                    <div class="box">
                    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage Box #1')) { ?>
                      <div class="box-main">
                      	<div class="icon"><img src="<?php echo get_template_directory_uri();?>/timthumb.php?src=<?php echo ($homebox_image1) ? $homebox_image1 : get_template_directory_uri().'/images/img-main1.jpg';?>&amp;h=90&amp;w=66&amp;zc=1" alt="" /></div>
                      <p>
                      <strong><a href="<?php echo ($homebox_desturl1) ? $homebox_desturl1 : "#";?>"><?php echo ($homebox_title1) ? stripslashes($homebox_title1) : "Voluptatem accusantium";?></a></strong><br />
                      <?php echo ($homebox_desc1) ? stripslashes($homebox_desc1) : "This is homepage box #1 widgetable area, you can use Page/Post to Box Widget here. Doloremque laudanti totam rem aperiam, sunt in culpa qui officia deserunt mollitia animi.";?>
                      </p>
                      <div class="clr"></div>
                      </div>
                      <?php } ?>
                    </div>
                    <div class="spacer">&nbsp;</div>
                    <div class="box">                    
                      <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage Box 2')) { ?>
                      <div class="box-main">
                      	<div class="icon"><img src="<?php echo get_template_directory_uri();?>/timthumb.php?src=<?php echo ($homebox_image2) ? $homebox_image2 : get_template_directory_uri().'/images/img-main2.jpg';?>&amp;h=90&amp;w=66&amp;zc=1" alt="" /></div>
                      <p>
                      <strong><a href="<?php echo ($homebox_desturl2) ? $homebox_desturl2 : "#";?>"><?php echo ($homebox_title2) ? stripslashes($homebox_title2) : "Duis aute reprehenderit";?></a></strong><br />
                      <?php echo ($homebox_desc2) ? stripslashes($homebox_desc2) : "This is homepage box #2 widgetable area, you can use Page/Post to Box Widget here. Accusantium dolorem que velit esse cillum dolore fugiatnul ulla pariatur sint occaecat nesciunt.";?>
                      </p>
                      <div class="clr"></div>
                      </div>
                      <?php } ?>
                    </div>
                 	</div><!-- end of maintext -->
								</div><!-- end of main -->
								<?php wp_reset_query();?>
                <?php get_sidebar();?>
              <?php get_footer();?>